Use the GREAT shareware program Speed Beep. Get version 2.0.6.
+++++++++++++++++++++++++++
From: barrett@ial4.jsc.nasa.gov (Jim Barrett)
Date: 9 Jun 92 20:31:52 GMT
Organization: Lockheed Engineering & Sciences Co.
In article <DVB.92Jun9130158@squid.inmet>, dvb@squid.inmet (David V. Baker) writes:
> *I'm looking to have different beeps for different applications.*
>
> Does anyone "out there" know if (and how) I can have multiple "beeps"
> on my machine? Specifically, I would like MacX (and therefore my
> terminal windows) to have a different beep-sound than the rest of my
> machine. Is there some magic id number I could paste a sound into MacX
> and bypass the request to the System for the standard beep? Could an
> INIT of some sort force an override of the beep sound?
I don't know of an INIT, but I know how to do this with ResEdit.
WARNING - the following is more that I know about the Macintosh. I learned
this trick from a Mac developer friend.
Apparently, when the system opens any resource, it searches the current
application, and then it searches the system. If you had selected SND id 256,
for instance, and your software generates a beep, the system searches your
open application for sound resource id 256, and then it searches the system
itself, which is where it typically finds the sound. However, if you set your
system beep to whatever sound is associated with, say, 256, and there just
happens to be a sound id 256 in your current application, the one in your
application will sound when your app ic current, and the one in the system
suitcase will sound for other apps.
What I've done: I resedited my system suitcase (make a backup first, ok?),
and created a sound resource of ID 256, and gave it a name like "sound #256".
Then I open the sound control panel and make "sound #256" the system beep.
Finally, I resedit my application (make another backup first, ok?), and copy
in a sound resource, and give it a resource id of 256. voila! My telnet
application has a nice short beep, and my other applications have a longer,
more entertaining beep.
If anyone has a better idea, I'm sure they'll post ... :-)
Regards,
Jim
---------------------------
From: jstevens@crick.ssctr.bcm.tmc.edu (Jason Philip Stevens)
Subject: ZREF error?
Date: 9 Jun 92 22:31:50 GMT
Organization: Baylor College of Medicine, Houston, Tx
I'm writing an application with TCL 1.1 and Think C 5.0. I keep getting "ZREF" errors that ask me to remove objects and re-make my code. This is a painfully
time-consuming process; does anyone have any idea what causes these errors and
what I can do to prevent them?
- -jps
PS: Frequent = ~3 times/day, code size is about 106,000 lines, on a mac II with
sys 7.0 (no tuneup) and 5 mb ram.
- --
Jason Stevens Internet: jstevens@bcm.tmc.edu
Network User Services Voice: (713) 798-7370
Baylor College of Medicine Opinions expressed are mine alone.
+++++++++++++++++++++++++++
From: mspace@netcom.com (Brian Hall)
Date: Tue, 09 Jun 92 23:32:52 GMT
Organization: Netcom - Online Communication Services (408 241-9760 guest)
jstevens@crick.ssctr.bcm.tmc.edu (Jason Philip Stevens) writes:
>I'm writing an application with TCL 1.1 and Think C 5.0. I keep getting "ZREF" errors that ask me to remove objects and re-make my code. This is a painfully
>time-consuming process; does anyone have any idea what causes these errors and
>what I can do to prevent them?
>-jps
>PS: Frequent = ~3 times/day, code size is about 106,000 lines, on a mac II with
>sys 7.0 (no tuneup) and 5 mb ram.
I had the same problem working on a IIfx 20/210. My project contained
about 40 subprojects and around 200 source files. Even though ThC claims
to use multifinder temp mem, meaning you should not have to increase
the partition size, I found the only way to reliably exorcise the ZREF
error was to increase the compilers partition by a large amount (I made
it 4M for that particular app, and 2M for a smaller app I am doing on a
IIsi).
My other beef with 5.0 is that it *still* uses the resource manager for
the project file. This can get *real* slow with a large project. Just
the time it takes to remove and then add resources during a compile can
become significant. A little trick I use is to do a remove objects if
a significant number of files will need to be recompiled. This is faster
because you are just doing address instead of a bunch of changedres calls.
- --
\ | / | Brian Hall mspace@netcom.com
- : - | Mark/Space Softworks Applelink: markspace
/|\ | America Online: MarkSpace
|-+-| |
/-\|/-\ | People don't kill people, toasters kill people.
---------------------------
From: de19@umail.umd.edu (Dana S Emery)
Subject: PS font name, How to get it from FOND?!
Date: 10 Jun 92 06:59:59 GMT
Organization: Personal
In article <13798@umd5.umd.edu>, de19@umail.umd.edu (Dana S Emery) writes:
>
> In article <14271@ucdavis.ucdavis.edu>, lim@iris.ucdavis.edu (Lloyd Lim) writes:
> >
> > In article <10s9ocINNdd2@agate.berkeley.edu> ewylie@ocf.berkeley.edu (Elizabeth Wylie) writes:
> > >
> > >I am trying to determine whether a particular font (given a font name and
> > >number) has a PostScript counterpart that will be handled by ATM. I've
> > >been told that ATM has some callback routines that would help me out,
> > >but I don't know what these routines are.
> > >
>
> > Yes, the procedure is named fontAvailableATM. It's not hard but it's
> > a bit long to describe here.
>
> Suitcase is able to access some field in the FOND which defines the
> PS font name (ie TimesRomBol), so ATM shouldnt be necesary (unless one
> also needed to confirm the existance of the related 'LWFN'). I vaguely
> remember some doc on this, but cant place it just now.
>
> DSE (de19@umail.umd.edu)
in <1992Jun9.184919.22275@reed.edu>, orpheus@reed.edu (P. Hawthorne)
went on at length re: ATM backdoor solution, which is ok, but leaves
my (de19) question unanswered.
- Suitcase gets the PS file name from inspection of the FOND/FONT/NFNT/..
- what is it looking at?
My question is more than idle, as I have dreams of writing a font editor
Danger('The typeface Typographer cannot be sorted.');
v := GetEntry(r);
i := l - 1;
j := r;
Repeat
Repeat
i := i + 1
Until (GetKeyFromIndex(i) >= GetKey(v));
Repeat
j := j - 1
Until (GetKeyFromIndex(j) <= GetKey(v));
t := GetEntry(i);
SetEntry(i, GetEntry(j));
SetEntry(j, t);
Until j <= i;
SetEntry(j, GetEntry(i));
SetEntry(i, GetEntry(r));
SetEntry(r, t);
QuickSort(l, i - 1);
QuickSort(i + 1, r);
End;
End;
Begin
{QuickSort(0, Count);}
End;
Procedure Typographer.Unique;
Var
a, e: Integer;
this, last: FontRecord;
Begin
e := 0;
last := GetEntry(0);
For a := 1 To Count Do
Begin
this := GetEntry(a);
If (this.PSFamily = last.PSFamily) And (this.PSFace = last.PSFace) And
(this.PSStyle = last.PSStyle) Then
e := e + 1
Else
SetEntry(a - e, this);
last := this;
End;
Count := Count - e;
End;
Procedure Typographer.Harmony;
Var
a, e, i, o: Integer;
this, next, temp: FontRecord;
found, reported: Boolean;
lastA, lastB: Str255;
timer: Longint;
Begin
found := false;
reported := false;
lastA := '';
lastB := '';
a := Count - 1;
For e := 0 To a Do
Begin
this := GetEntry(e);
o := e + 1;
For i := o To Count Do
Begin
next := GetEntry(i);
If (next.QDFont <> this.QDFont) Then
If (next.QDFace = this.QDFace) Then
If (this.QDFont <> lastA) And (next.QDFont <> lastB) Then
Begin
If found And Not reported Then
Begin
Stop('Font resource number conflicts have been detected.');
Notice(Concat('The fonts ', Concat(Concat(Concat(lastA, ' and '),
lastB), ' have the same font resource numbers.')));
reported := true;
End;
If found Then
Notice(Concat('The fonts ', Concat(Concat(Concat(this.QDFont, ' and '),
next.QDFont), ' have the same font resource numbers.')));
found := true;
lastA := this.QDFont;
lastB := next.QDFont;
End;
End;
End;
If found And Not reported Then
Begin
Stop('A font resource number conflict has been detected.');
Notice(Concat('The fonts ', Concat(Concat(Concat(lastA, ' and '), lastB), '
have the same font resource numbers.')));
End;
End;
Procedure Typographer.Destruct;
Begin
Dispose;
End;
- ------- Cut here
Theus (orpheus@reed.edu)
+++++++++++++++++++++++++++
From: ewylie@ocf.berkeley.edu (Elizabeth Wylie)
Date: 12 Jun 1992 05:06:28 GMT
Organization: U.C. Berkeley Open Computing Facility
Thanks to all who responded. I was not able to find the adobe information on sumex-aim (has it been removed) but I enquired at adobe and they are sending me their TechNote #2 and a disk.
Several people made the assumption that 'there must be a better way of finding out what you need to know'. I suppose I wasn't clear enough. I need to know whether 17 point Helvetica (for instance) will be drawn as a scaled bitmap or if ATM will take over and draw it as PostScript. The only clean way to do this is to ask ATM via it's backdoor routines.